package com.hui.security.common.jwt;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * <b><code>JwtToken</code></b>
 * <p/>
 * Description:
 * <p/>
 * <b>Creation Time:</b> 2019/1/5 16:07.
 *
 * @author HuWeihui
 */
@Data
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
